package com.diligent.cloud.sfc.service;

import com.canny.commons.model.Result;
import com.diligent.cloud.sfc.model.OperationCompleteParams;
import com.diligent.cloud.sfc.model.OrderCompleteParams;
import com.diligent.cloud.workorder.model.WoOperation;
import org.springframework.http.ResponseEntity;

import java.security.Principal;

/**
 * WoOperationResource interface
 *
 * @author xf107278
 * @date 3/28/2020
 */
public interface WoOperationService {

    ResponseEntity<Result> addOrderComplete(OrderCompleteParams completeParams, Boolean isHanging,
                                            Principal principal);

    ResponseEntity<Result> addOperation(WoOperation woOperation, Principal principal);

    ResponseEntity<Result> addOperationComplete(OperationCompleteParams operationCompleteParams, Principal principal);
}
